package db_main

import (
	"fmt"
	global2 "longmen/server/config/global"
	"longmen/server/pkg/common/helper/util"
	"longmen/server/pkg/db/mysql/models/models_main"
)

func GetConfigPri() (*models_main.ConfigPri, error) {
	fName := "GetConfigPri"
	o := &models_main.ConfigPri{}
	err := global2.GetR().Model(models_main.ConfigPri{}).Limit(1).Scan(o).Error
	if err != nil {
		err = fmt.Errorf("%s%s", util.Convert(fName), err.Error())
	}
	return o, err
}
